@font-face {
    font-family: Miriam;
    src: url("assets/fonts/miriam/Miriam-Regular.ttf");
}

@font-face {
    font-family: Lexend;
    src: url("assets/fonts/lexend/Lexend-VariableFont_wght.ttf");
}

:root {
    --color-primary: #00395E;
    --color-primary-alt: #00395E;
    --color-sec: #C39737;
    --color-bg: #f9f9f9;
    --color-text: #23242b;
    --color-text-sec: #C39737;
    --color-text-trd: #00395E;
    --warning-red: #ff5e5e;
    --info-red: #ff8686;
    --hh-blue: #00395E;
    --hh-gold: #C39737;
    --hh-bg-white: #f9f9f9;
    --hh-bg-black: #23242b;
    --label-hover: #C39737;

    --button-primary: #00395E;
    --button-secundary: #C39737;
    --button-disabled: #888;
    --button-disabled-outline: #555;

    --lettertype: Miriam, sans-serif;

    --header-height: 50px;
    --footer-height: 40px;
}

.darkmode {
    --color-primary: #23242b;
    --color-primary-alt: #C39737;
    --color-sec: #C39737;
    --color-bg: #00395E;
    --color-text: #fff;
    --color-text-sec: #C39737;
    --color-text-trd: #fff;
    --button-primary: #C39737;
    --button-secundary: #f9f9f9;
    --label-hover: #00395E;
}

.dyslexia {
    --lettertype: Lexend, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--lettertype);
}

body {
    min-height: 100vh;
    background-color: var(--color-bg);
    margin-top: var(--header-height);
    padding-top: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    color: var(--color-text);
}

.wrapper {
    background-color: var(--color-bg);
    height: fit-content;
    width: min(1300px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo>img {
    height: 100px;
}

.logo img:last-child {
    display: none;
}

.darkmode .logo img:first-child {
    display: none;
}

.darkmode .logo img:last-child {
    display: inline;
}

h1 {
    margin-top: 40px;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-sec);
}

form {
    box-sizing: border-box;
    background-color: var(--color-bg);
    width: min(1000px, 100%);
    margin-top: 5px;
    padding: 25px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-form {
    width: min(500px, 100%);
    margin-top: 50px;
}

.form-row,
.button-row,
.action-row {
    width: min(900px, 100%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.field-group {
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-items: left;
}

#login-form>.field-group {
    width: min(400px, 100%);
}

.field-row {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    margin: 0px 20px 15px 20px
}

#login-form .field-row {
    margin: 0;
    margin-bottom: 15px;
    width: 100%;
}

.field-label {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    margin-left: 20px;
}

#login-form .field-label {
    margin: 0;
}

.input-field {
    box-sizing: border-box;
    display: flex;
    justify-content: left;
    min-width: 200px;
    width: min(360px, 100%);
    height: 50px;
    padding-left: 0.85em;
    font-family: inherit;
    font-size: 15px;
    border-radius: 0 10px 10px 0;
    border-color: #d3d3d3;
    border-style: solid;
    border-left: 0;
    background-color: #d3d3d3;
    transition: 150ms ease;
}

.field-icon {
    box-sizing: border-box;
    padding: 12px;
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: var(--color-primary-alt);
    fill: white;
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accounttype-icon {
    box-sizing: border-box;
    padding: 12px;
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: var(--color-primary-alt);
    fill: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.accounttype-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.accounttype-group {
    margin-left: 30px;
    display: flex;
    flex-direction: row;
    align-content: center;
}

.accounttype-label {
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-self: center;
    padding-left: 7px;
}

.accounttype-group input {
    cursor: pointer;
    align-self: center;
    height: 20px;
    width: 20px;
    background-color: var(--color-bg);
    border-radius: 50%;
}

form input:hover {
    border: 2px solid var(--color-primary-alt);
    background-color: white;
    fill: var(--label-hover);
    border-left: 0;
}

form input:focus {
    outline: none;
    border-color: var(--color-primary-alt);
    background-color: white;
    fill: var(--label-hover);
}

div:has(input:focus)>svg {
    fill: var(--label-hover);
}

.accounttype-radio:hover {
    border-color: var(--color-sec);
    background-color: var(--color-sec);
}

.login-redirect,
.button-row>button {
    margin: 0px 20px;
}

form button,
.login-redirect {
    color: white;
    background-color: var(--button-primary);
    padding: 0.85em 2em;
    border: 2px solid black;
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    transition: 150ms ease;
}

form button:hover,
button:focus,
.login-redirect:hover,
.login-redirect:focus {
    outline: none;
    background-color: var(--button-secundary);
    color: var(--color-bg);
    cursor: pointer;
}

.login-redirect,
.action-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.action-link {
    text-decoration: none;
    color: var(--color-text-trd);
    width: 250px;
}

.action-link:hover {
    color: var(--color-sec);
    text-decoration: underline;
}

#login-btn {
    margin-top: 20px;
}

.btn-row-login {
    justify-content: center;
}

.login-redirect>p {
    padding: 0.85em 2em 0.85em 1em;
}

.login-redirect>svg {
    fill: var(--color-bg);
    align-self: center;
    padding: 4px;
}

.signup-infobox {
    height: fit-content;
    width: min(80%, 1200px);
    background-color: var(--info-red);
    border: 2px solid rgb(180, 0, 0);
    border-radius: 10px;
    padding: 15px;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
}

form div.incorrect .field-icon {
    background-color: var(--warning-red);
}

form div.incorrect .input-field {
    border-color: var(--warning-red);
}

.error-label {
    color: rgb(253, 49, 49);
    font-style: italic;
    margin-right: 20px;
}

form div.disabled .field-icon {
    background-color: var(--button-disabled-outline);
    transition: 150ms ease;
    fill: white;
}

form div.disabled .input-field {
    border-color: var(--button-disabled-outline);
    background-color: #AAA;
}




header {
    position: fixed;
    top: 0;
}

header,
.header-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: var(--header-height);
    background-color: var(--color-primary);
    color: white;
    fill: white;
}

.header-group,
.header-group>a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

#header-right {
    margin-right: 50px;
}

#logo-header {
    height: 35px;
    margin-left: 3em;
}

.header-page {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 50px;
    margin-left: 1em;
    font-size: 18px;
    text-decoration: none;
    padding-top: 3px;
    border-bottom: 6px solid var(--color-primary);
    transition: 150ms ease;
    color: #f9f9f9;
}

.header-page:hover {
    border-bottom: 6px solid var(--hh-gold);
    color: var(--hh-gold);
    fill: var(--hh-gold);
}

footer {
    position: fixed;
    bottom: 0;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: flex-end;
    width: 100vw;
    height: var(--footer-height);
}

.footer-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-page {
    text-decoration: none;
    color: var(--color-text-trd)
}

.footer-page:hover {
    color: var(--hh-gold);
    text-decoration: underline;
}

.divider {
    margin: 0 50px;
}

.action-divider {
    margin: 0 20px;
}

.accessibility {
    position: absolute;
    right: 40px;
    bottom: 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.accessibility-button {
    height: 40px;
    width: 40px;
    border-radius: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    fill: #fff;
    border: 2px solid black;
    background-color: var(--button-primary);
}

.accessibility-button:hover,
.accessibility-button:focus {
    fill: var(--color-bg);
    background-color: var(--button-secundary);
    cursor: pointer;
}

/* -----  page  -----*/
.page h1 {
    color: var(--hh-gold);
    font-size: 46px;
    margin-bottom: 30px;
}

.page ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.page li::marker {
    color: var(--hh-gold)
}

a {
    color: var(--color-primary-alt);
    text-decoration: none;
}

a:hover {
    color: var(--hh-gold);
    text-decoration: underline;
}

.page .button-row {
    margin-top: 50px;
}



/* -----  404 page  -----*/
.wrapper {
    height: fit-content;
    width: min(80%, 1200px);
}



/* -----  status page  -----*/
.p-status h3 {
    color: var(--hh-gold);
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 5px;
}

.p-status ul {
    padding-left: 15px;
}

.p-status li {
    margin-top: 12px;
}

.p-status #type-box {
    margin-top: 20px;
}

.p-status #status-box {
    font-size: 55px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 80px;
}

.p-status .accepted {
    color: rgb(0, 153, 0);
}

.p-status .pending {
    color: rgb(255, 102, 0);
}

.p-status .denied {
    color: rgb(190, 2, 2);
}




@media(max-width: 1100px) {
    body {
        overflow: visible;
    }
}